Release 10.1A: OpenEdge Development:
Progress Dynamics Basic Development


Creating and modifying Palette objects

Always create your own template and palette objects. Do not modify the default template or palette objects. Any changes you make to the default objects will be overwritten by changes Progress makes in future releases.

To create a palette object with the ROM to add a custom icon to the Object Palette:

  1. Create a SmartDataField drop-down calendar.
  2. Save it as dropdowncal.w in the adm2/custom directory and register it in the Repository.
  3. Open the ROM and type palette in the Object Type field.
  4. Expand the tree view to show the contents of the Palette Objects node.
  5. Create a new object using the following values:
  6. Field
    Value
    Product
    MyProduct
    Product module
    MyProductModule
    Object type code
    staticSDF
    Object filename
    myCustomPalettes
    Layout
    None (00)

  7. Expand the myCustomPalettes node.
  8. Create a new Object Instance named dropdowncal.
  9. Add the following attributes for dropdowncal:
    • PaletteNewTemplateadm2/custom/dropdowncal.w
    • PaletteTypeSmartDataField
    • PaletteLabelDropdown Calendar
    • PaletteOrder5
  10. Choose File Preferences on the Administration window. The Dynamics Preferences dialog box appears.
  11. Type *, myCustomPalettes in the Custom Palettes field, as shown:
  12. Choose OK.
  13. Choose Menu Use Custom... from the Object Palette’s menu. The Use Custom dialog box appears.
  14. Choose OK to reload the information from the Repository.
  15. Right-click the SmartDataField icon. The new Dropdown Calendar object is available on the pop-up menu.

Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095